//
//  WPhotoShowView.h
//  PhotosBrowser
//
//  Created by winter on 2016/10/24.
//  Copyright © 2016年 JHJR. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WProgressView.h"
#import "WPhotoModel.h"
#import "WPhotoShowCell.h"

@interface WPhotoShowView : UIImageView
@property (nonatomic, copy) void(^actionBlock)(PhotoViewActionType action);

@property (nonatomic, strong) WPhotoModel *photoModel;

/** 是否放大状态 */
@property (nonatomic, assign) BOOL isBig;
/** 是否正在预览*/
@property (nonatomic, assign) BOOL isPreview;
/** 是否是视频 */
@property (nonatomic, assign) BOOL isMovie;
/** 原来的frame*/
@property (nonatomic, assign) CGRect orignalFrame;
/** 放大的倍数 */
@property (nonatomic, assign) CGFloat scale;
/** 判断是否是旋转手势 */
@property (nonatomic, assign, getter=isRotationGesture) BOOL rotationGesture;

///** 在window呈现的view*/
//@property (nonatomic, strong) PYPhotoView *windowView;
///** 父控件photosView */
//@property (nonatomic, weak) PYPhotosView *photosView;

/** 每个photoView的photoCell */
@property (nonatomic, weak) WPhotoShowCell *photoCell;
/** 加载进度view */
@property (nonatomic, weak) WProgressView *progressView;
/** 加载失败显示图片 */
@property (nonatomic, weak) UIImageView *loadFailureView;

- (void)animateWithFromFrame:(CGRect)fromFrame animations:(void (^)(void))animations;
@end
